package com.pig.pojo.recipes;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pig.pojo.BasePojo;

import java.util.Date;
import java.util.List;

@TableName("p_recipes")
public class Recipes extends BasePojo {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String menuName;
    private String finishedImg;
    private String described;
    private String needTime;
    private String flavor;
    private String technology;
    private String kitchenware;
    private String difficulty;
    private String tips;
    @TableField(exist=false)
    private List<Condiment> condiments;
    @TableField(exist=false)	//入库操作忽略该字段
    private List<Production> productions;

    public Recipes() {
    }

    public Recipes(Long id, String menuName, String finishedImg, String described, String needTime, String flavor, String technology, String kitchenware, String difficulty, String tips, List<Condiment> condiments, List<Production> productions) {
        this.id = id;
        this.menuName = menuName;
        this.finishedImg = finishedImg;
        this.described = described;
        this.needTime = needTime;
        this.flavor = flavor;
        this.technology = technology;
        this.kitchenware = kitchenware;
        this.difficulty = difficulty;
        this.tips = tips;
        this.condiments = condiments;
        this.productions = productions;
    }

    public Recipes(Date createdTime, Date modifiedTime, Long id, String menuName, String finishedImg, String described, String needTime, String flavor, String technology, String kitchenware, String difficulty, String tips, List<Condiment> condiments, List<Production> productions) {
        super(createdTime, modifiedTime);
        this.id = id;
        this.menuName = menuName;
        this.finishedImg = finishedImg;
        this.described = described;
        this.needTime = needTime;
        this.flavor = flavor;
        this.technology = technology;
        this.kitchenware = kitchenware;
        this.difficulty = difficulty;
        this.tips = tips;
        this.condiments = condiments;
        this.productions = productions;
    }

    public String getDescribed() {
        return described;
    }

    public void setDescribed(String described) {
        this.described = described;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getFinishedImg() {
        return finishedImg;
    }

    public void setFinishedImg(String finishedImg) {
        this.finishedImg = finishedImg;
    }

    public String getNeedTime() {
        return needTime;
    }

    public void setNeedTime(String needTime) {
        this.needTime = needTime;
    }

    public String getFlavor() {
        return flavor;
    }

    public void setFlavor(String flavor) {
        this.flavor = flavor;
    }

    public String getTechnology() {
        return technology;
    }

    public void setTechnology(String technology) {
        this.technology = technology;
    }

    public String getKitchenware() {
        return kitchenware;
    }

    public void setKitchenware(String kitchenware) {
        this.kitchenware = kitchenware;
    }

    public String getDifficulty() {
        return difficulty;
    }

    public void setDifficulty(String difficulty) {
        this.difficulty = difficulty;
    }

    public String getTips() {
        return tips;
    }

    public void setTips(String tips) {
        this.tips = tips;
    }

    public List<Condiment> getCondiments() {
        return condiments;
    }

    public void setCondiments(List<Condiment> condiments) {
        this.condiments = condiments;
    }

    public List<Production> getProductions() {
        return productions;
    }

    public void setProductions(List<Production> productions) {
        this.productions = productions;
    }

    @Override
    public String toString() {
        return "Recipes{" +
                "id=" + id +
                ", menuName='" + menuName + '\'' +
                ", finishedImg='" + finishedImg + '\'' +
                ", described='" + described + '\'' +
                ", needTime='" + needTime + '\'' +
                ", flavor='" + flavor + '\'' +
                ", technology='" + technology + '\'' +
                ", kitchenware='" + kitchenware + '\'' +
                ", difficulty='" + difficulty + '\'' +
                ", tips='" + tips + '\'' +
                ", condiments=" + condiments +
                ", productions=" + productions +
                '}';
    }
}
